From 56a86d9c66c355da0433b86fe893b06d9829ac0c Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Fri, 8 Jul 2011 08:35:00 +0100 Subject: [PATCH] libelf: "required" features should also be reported as "supported" Signed-off-by: Jan Beulich --- xen/common/libelf/libelf-dominfo.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/xen/common/libelf/libelf-dominfo.c b/xen/common/libelf/libelf-dominfo.c index 5f48d3fea3..67ec1468ab 100644 --- a/xen/common/libelf/libelf-dominfo.c +++ b/xen/common/libelf/libelf-dominfo.c @@ -64,13 +64,14 @@ int elf_xen_parse_features(const char *features, { if ( !elf_xen_feature_names[i] ) continue; - if ( (required != NULL) && (feature[0] == '!') ) + if ( feature[0] == '!' ) { /* required */ if ( !strcmp(feature + 1, elf_xen_feature_names[i]) ) { elf_xen_feature_set(i, supported); - elf_xen_feature_set(i, required); + if ( required ) + elf_xen_feature_set(i, required); break; } } -- 2.30.2